Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NodeOrder to devices API #2959

Closed
wants to merge 1 commit into from
Closed

Conversation

archlitchi
Copy link
Contributor

Add NodeOrder to devices API. Devices API should provide the ability to score each node based on corresponding device information of this node. A device which don't want to participate in score process, can simply return a (0,nil) in ScoreNode.

Future work includes implement "Mellanox" device in devices API, which can provide more accurate scheduling decision making based on Infiniband-network topology. It is crucial for large-scale training cluster which uses mellanox for InfiniBand data exchange.

@volcano-sh-bot volcano-sh-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 17, 2023
@archlitchi
Copy link
Contributor Author

/assign @william-wang @wangyang0616

@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign william-wang
You can assign the PR to them by writing /assign @william-wang in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -0,0 +1,65 @@
/*
Copyright 2018 The Kubernetes Authors.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The time here can be updated.

if !devices.HasDeviceRequest(task.Pod) {
continue
}
tmp, err := devices.ScoreNode(task.Pod)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better way to name the tmp variable?

klog.Warningln("scoreNode failed in predicate nodeorderFn", err.Error())
return 0, err
}
score += tmp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does deveice's scoring strategy support weight configuration?

@volcano-sh-bot volcano-sh-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants